{% extends 'depart_layout.html' %}
<!--  增加部分   -->
{% block content %}
<div class="container">
    <div class="panel panel-default">
        <!-- Default panel contents -->
        <div class="panel-heading">
            <span class="glyphicon glyphicon-th-list" aria-hidden="true" style="margin-right: 5px;"></span>
            <span> 编辑部门 </span>
        </div>
        <div class="panel-body">
            <form action="/depart/{{ row_object.id }}/edit/" method="post">
                {% csrf_token %}
                <div class="form-group">
                    <label>部门名称</label>
                    <!-- 这里 value就是默认值 -->
                    <input type="text" class="form-control" placeholder="部门名称" name="depart_title"
                        value="{{row_object.title }}" />
                </div>
                <button type="submit" class="btn btn-primary">保存</button>
            </form>
        </div>
    </div>
</div>
{% endblock %}

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>

</body>

</html>